<div id="sf_admin_container">
    <div id="sf_admin_content">
<?php if($rec_obj){?>

<table width="500" cellspacing="0" cellpadding="0" border="0" align="center">
    <tr>
        <th width="30%"><?php echo __('Record Title')?></th>
        <td width="70%"><?php echo Doctrine::getTable($rec_obj['model_name'])->find($rec_obj['model_id']);?></td>
    </tr>
    <tr>
        <th width="30%"><?php echo __('Record Type')?></th>
        <td width="70%"><?php echo __(ChangeLogsTable::$loggable_models[$rec_obj['model_name']])?></td>
    </tr>
    <tr>
        <th width="30%"><?php echo __('Modification time')?></th>
        <td width="70%"><?php echo $rec_obj['modification_time']?></td>
    </tr>
</table>
    
<table width="500" cellspacing="0" cellpadding="0" border="0" align="center">
    <thead>
        <tr>
            <th width="40%"><?php echo __('Field Name')?></th>
            <th width="30%"><?php echo __('Old Value')?></th>
            <th width="30%"><?php echo __('New Value')?></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($log_recs as $log_rec){?>
        <tr>
            <td><?php echo $form[$log_rec['field_name']]->renderLabel();?></td>
            <td><?php echo BaseForm::getShowValue($form[$log_rec['field_name']], $log_rec['old_value'])?></td>
            <td><?php echo BaseForm::getShowValue($form[$log_rec['field_name']], $log_rec['new_value'])?></td>
        </tr>
        <?php }?>
    </tbody>
</table>
    
<?php }else{?>
<div class="no_log_data">
    <?php echo __('NO_HISTORY_LOGS_FOUND');?>
</div>
<?php } ?>
    </div>
</div>